from common.Point import cPoint

class ImageArea:
    def __init__(self, sp, ep):
        self.sp = sp  # 矩形左上角坐标  startPoint
        self.ep = ep  # 矩形右上角坐标  endPoint


def cArea(x1, y1, x2, y2):
    return ImageArea(cPoint(x1,y1), cPoint(x2,y2))